package com.cheng.mybatis02.dao;

import com.cheng.mybatis02.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

public interface UserMapper {
    User queryUserById(int id);

    User queryUserByUsernameAndPassword(String username, String password);

    User queryUserByIdAndUsername(Map<String, String> params);

    int insertUser(User user);

    int deleteUser(@Param("id") int id, @Param("username") String username);
}
